package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class MessageBean implements Parcelable {

    /**
     * bizId : 57
     * bizType : 10
     * type : 1008
     * 	{"type":"1015","userIds":["52121","52122"],"opType":"1"}
     */

    private String bizId;
    private String bizType;
    private String type;
    private String logId;
    private String luminance;//亮度
    private String volume;// 音量
    private String opType;
    private List<String> userIds;

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getLuminance() {
        return luminance;
    }

    public void setLuminance(String luminance) {
        this.luminance = luminance;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getOpType() {
        return opType;
    }

    public void setOpType(String opType) {
        this.opType = opType;
    }

    public List<String> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<String> userIds) {
        this.userIds = userIds;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bizId);
        dest.writeString(this.bizType);
        dest.writeString(this.type);
        dest.writeString(this.logId);
        dest.writeString(this.luminance);
        dest.writeString(this.volume);
        dest.writeString(this.opType);
        dest.writeStringList(this.userIds);
    }

    public MessageBean() {
    }

    protected MessageBean(Parcel in) {
        this.bizId = in.readString();
        this.bizType = in.readString();
        this.type = in.readString();
        this.logId = in.readString();
        this.luminance = in.readString();
        this.volume = in.readString();
        this.opType = in.readString();
        this.userIds = in.createStringArrayList();
    }

    public static final Creator<MessageBean> CREATOR = new Creator<MessageBean>() {
        @Override
        public MessageBean createFromParcel(Parcel source) {
            return new MessageBean(source);
        }

        @Override
        public MessageBean[] newArray(int size) {
            return new MessageBean[size];
        }
    };
}
